package CollectionsFramework;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CollectionsTest {

    public static void main(String[] args) {
        List<Integer> nums = new ArrayList<>();
        Collections.addAll(nums,1,2,3,4,5);  //在nums中添加指定内容
        Collections.shuffle(nums);   //打乱nums
        System.out.println(nums);

        List<Integer> integers = Arrays.asList(1,2,3,4,5);
        System.out.println(integers);

    }
}
